Skip to content

Conversation

muwoo
Copy link

@muwoo muwoo commented Mar 7, 2025

The window size state needs to be related to the screen's scale_factor. Otherwise, if the external monitor resolution is inconsistent, the restored window size will be scaled relative to the previous state.

@muwoo muwoo requested a review from a team as a code owner March 7, 2025 07:26
@Legend-Master
Copy link
Contributor

This was changed in #1743 deliberately for changing scale factors on the same resolution screen

I feel like there's no right answer to this when the resolution and scaling are changing, we either break on resolution change or on scaling change 😥

I'm thinking maybe we should check for the monitor and see if we're still on the same monitor, and don't restore the size if that have changed, like what we did for the position

@muwoo
Copy link
Author

muwoo commented Mar 7, 2025

Thank you for your answer. I just completed the migration from version 1.x to 2.x and found that the window size status was inconsistent with the 1.x version. I mistakenly thought that the code was not implemented.😂

@muwoo muwoo closed this Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants